Skip to content

allow "suffix" be optional in product queries for Python algorithms#436

Merged
wlav merged 7 commits intoFramework-R-D:mainfrom
wlav:optional-suffix
Mar 19, 2026
Merged

allow "suffix" be optional in product queries for Python algorithms#436
wlav merged 7 commits intoFramework-R-D:mainfrom
wlav:optional-suffix

Conversation

@wlav
Copy link
Contributor

@wlav wlav commented Mar 18, 2026

In the move to the new Python API, the original input/output names were moved to the suffix and as such required. However, suffix is optional in product_query, thus should also be optional from Python. This patch makes it optional and adds a bunch of tests to cover the various paths (w/ and w/o suffix, for both transforms and observers).

@greenc-FNAL
Copy link
Contributor

Review the full CodeQL report for details.

@codecov
Copy link

codecov bot commented Mar 18, 2026

Codecov Report

❌ Patch coverage is 86.20690% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
plugins/python/src/modulewrap.cpp 86.20% 0 Missing and 4 partials ⚠️
@@            Coverage Diff             @@
##             main     #436      +/-   ##
==========================================
+ Coverage   84.43%   85.06%   +0.62%     
==========================================
  Files         127      127              
  Lines        3329     3341      +12     
  Branches      564      574      +10     
==========================================
+ Hits         2811     2842      +31     
+ Misses        325      306      -19     
  Partials      193      193              
Flag Coverage Δ
unittests 85.06% <86.20%> (+0.62%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
plugins/python/src/modulewrap.cpp 76.69% <86.20%> (+4.27%) ⬆️

... and 5 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6d7eb1a...186ca7d. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

beojan
beojan previously approved these changes Mar 19, 2026
Copy link
Contributor

@beojan beojan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@wlav wlav merged commit be7ee1c into Framework-R-D:main Mar 19, 2026
39 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants